﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using DTO;
using DAL;

namespace BLL
{
	public class TOATHUOCBENHNHANBUS
	{
		public static List<TOATHUOCBENHNHAN> GETALLTH()
		{
			TOATHUOCBENHNHANDAO th = new TOATHUOCBENHNHANDAO();
			return th.GetListTH();
		}
		public static DataTable GETALLTHs()
		{
			TOATHUOCBENHNHANDAO th = new TOATHUOCBENHNHANDAO();
			return th.GetListTHs();
		}
		public static List<TOATHUOCBENHNHAN> GetListTHbyID(TOATHUOCBENHNHAN ths)
		{
			TOATHUOCBENHNHANDAO th = new TOATHUOCBENHNHANDAO();
			return th.GetListTHbyID(ths);
		}
		public static List<CT_TOATHUOCBN> GetListCTTTbyIDTOAS(TOATHUOCBENHNHAN ths)
		{
			TOATHUOCBENHNHANDAO th = new TOATHUOCBENHNHANDAO();
			return th.GetListCTTTbyIDTOAS(ths);
		}
		public static DataTable GetListCTTTbyIDTOA(TOATHUOCBENHNHAN ths)
		{
			TOATHUOCBENHNHANDAO th = new TOATHUOCBENHNHANDAO();
			return th.GetListCTTTbyIDTOA(ths);
		}
		public static DataTable GetDonthuocRPT(TOATHUOCBENHNHAN ths)
		{
			TOATHUOCBENHNHANDAO th = new TOATHUOCBENHNHANDAO();
			return th.GetDonthuocRPT(ths);
		}
		public static List<TOATHUOCBENHNHAN> GetListTHbyIDBN(TOATHUOCBENHNHAN ths)
		{
			TOATHUOCBENHNHANDAO th = new TOATHUOCBENHNHANDAO();
			return th.GetListTHbyIDBN(ths);
		}
		public static bool INSERT(TOATHUOCBENHNHAN toa, List<CT_TOATHUOCBN> lct)
		{
			TOATHUOCBENHNHANDAO th = new TOATHUOCBENHNHANDAO();
			return th.INSERT(toa, lct);
		}
		public static bool UPDATE(TOATHUOCBENHNHAN ths)
		{
			TOATHUOCBENHNHANDAO th = new TOATHUOCBENHNHANDAO();
			return th.UPDATE(ths);
		}
		public static bool DELETE(TOATHUOCBENHNHAN ths)
		{
			TOATHUOCBENHNHANDAO th = new TOATHUOCBENHNHANDAO();
			return th.DELETE(ths);
		}
	}
}
